<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href='${Request["basePath"] ! ""}' />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>子项目信息配置表编辑</title>
	<link rel="stylesheet" type="text/css" href="css/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="css/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="css/basic.css">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="js/jquery.easyui-lang-zh_CN.js"></script>
</head>
<body>
<#if resultType = 'add'>
<div class="div_content_heah">添加数据</div>
	<form id="ff" class="easyui-form" action='childprojectinfo/save.dhtml' method="POST" data-options="novalidate:true">
	<table class="hovertable" style="background-color:rgb(226, 229, 237)" width="100%">
				<tr>
			<td  width='120'>主项目名称：</td>
			<td>
				<input type="text" id="projectCode"  name="projectCode" value="" placeholder="请选择主项目" class="easyui-combobox search-input" style="width:260px;" data-options="required: true,inputId:'projectCode',editable:false,valueField:'projectCode',textField:'projectName',url:'projectbasicinfo/select.dhtml'">
			</td>
		</tr>
		<tr>
			<td width='100'>子项目名称：</td>
			<td>
				<input type="text"  id="childProjectName" name="childProjectName" value="" class="easyui-textbox"  data-options="required: true," style="width:260px;">
			</td>
		</tr>
		<tr>
			<td width='100'>子项目英文名：</td>
			<td>
				<input type="text"  id="childProjectEng" name="childProjectEng" value="" class="easyui-textbox"  data-options="required: true," style="width:260px;">
			</td>
		</tr>
		<tr>
			<td width='100'>子项目类型：</td>
			<td>
				<input type="text" id="projectType"  name="projectType" placeholder="请选择子项目类型" class="easyui-combobox" style="width:260px;" data-options="required: true,inputId:'projectType',editable:false,valueField: 'value',textField: 'label',data:[{label: '持久层',value: '010'},{label: '前端WEB',value: '020'},{label: 'API接口',value: '030'},{label: 'DUBBO服务',value: '040'},{label: '定时任务',value: '050'},{label: '后台管理',value: '060'}]" >
			</td>
		</tr>
		<tr>
			<td width='100'>打包类型：</td>
			<td>
				<input type="text" id="packageType"  name="packageType" placeholder="请选择打包类型" class="easyui-combobox" style="width:260px;" data-options="required: true,inputId:'packageType',editable:false,valueField: 'value',textField: 'label',data:[{label: 'war',value: 'war'},{label: 'jar',value: 'jar'},{label: 'pom',value: 'pom'}]" >
			</td>
		</tr>
		<tr>
			<td width='100'>版本配置文件名：</td>
			<td>
				<input type="text"  id="configFileName" name="configFileName" value="" class="easyui-textbox"  data-options="" style="width:260px;">&nbsp;&nbsp;（例：login-admin.properties）
			</td>
		</tr>
		<tr>
			<td width='100'>环境版本配置：</td>
			<td>
<textarea class="textarea" name="versionConfig" id="versionConfig" style="height:200px;width:400px;">
<profile>
	<id>dev</id>
	<properties>
		<env>dev</env>
		<dubbo.run.redis>10.58.57.58:2181,10.58.57.54:2181,10.58.57.48:2181</dubbo.run.redis>
		<redis.businessName>FUNDWEB</redis.businessName>
	</properties>
</profile>
<profile>
	<id>uat</id>
	<activation>
		<activeByDefault>true</activeByDefault>
	</activation>
	<properties>
		<env>uat</env>
		<dubbo.run.redis>10.58.57.58:2181,10.58.57.54:2181,10.58.57.48:2181</dubbo.run.redis>
		<redis.businessName>JR_FUND_FUND_CACHE</redis.businessName>
	</properties>
</profile>
<profile>
	<id>pre</id>
	<properties>
		<env>pre</env>
		<dubbo.run.redis>10.58.57.59:2181,10.58.57.45:2181,10.58.57.50:2181</dubbo.run.redis>
		<redis.businessName>JR_FUND_FUND_CACHE</redis.businessName>
	</properties>
</profile>
<profile>
	<id>live</id>
	<properties>
		<env>live</env>
		<dubbo.run.redis>10.58.22.191:2181,10.58.22.192:2181,10.58.22.193:2181,10.58.50.149:2181,10.58.50.150:2181</dubbo.run.redis>
		<redis.businessName>JR_FUND_FUND_CACHE</redis.businessName>
	</properties>
</profile>
<profile>
	<id>drill</id>
	<properties>
		<env>live</env>
		<dubbo.run.redis>10.58.22.191:2181,10.58.22.192:2181,10.58.22.193:2181,10.58.50.149:2181,10.58.50.150:2181</dubbo.run.redis>
		<redis.businessName></redis.businessName>
	</properties>
</profile>
</textarea>
			</td>
		</tr>
		<tr>
			<td width='100'>基础依赖包：</td>
			<td>
<textarea class="textarea" name="basicJar" id="basicJar" style="height:200px;width:400px;">
	<dependency>
		<groupId>cn.com.gome</groupId>
		<artifactId>commons-frame</artifactId>
		<version>2.2.2</version>
	</dependency>
	<dependency>
		<groupId>cn.com.gome</groupId>
		<artifactId>commons-security</artifactId>
		<version>2.2.2</version>
	</dependency>
	<dependency>
		<groupId>cn.com.gome</groupId>
		<artifactId>commons-rpc</artifactId>
		<version>2.2.2</version>
	</dependency>
	<dependency>
		<groupId>cn.com.gome</groupId>
		<artifactId>commons-jdbc</artifactId>
		<version>2.2.2</version>
	</dependency>
		<!--如果不能用jdk1.8，就用这个吧-->
	<dependency>
		<groupId>com.google.guava</groupId>
		<artifactId>guava</artifactId>
		<version>20.0</version>
	</dependency>
</textarea>
			</td>
		</tr>
	<tr>
		<td colspan="2">
			<span onclick="if($('#ff').form('enableValidation').form('validate')){ff.submit()}" id="add_buttons" class="easyui-linkbutton" data-options="iconCls:'icon-add'">&nbsp;需&nbsp;要&nbsp;保&nbsp;存&nbsp;吗&nbsp;？&nbsp; </span>&nbsp;
			<span onclick="javascript:parent.go_lists()" class="easyui-linkbutton" data-options="iconCls:'icon-no'">&nbsp;去&nbsp;列&nbsp;表&nbsp;页&nbsp;？&nbsp;</span>
		</td>
	</tr>
</table>
</form>
</#if>

<#if resultType = 'edit'>
<div class="div_content_heah">修改数据--${enitty.childProjectName!''}</div>
<form id="ff" class="easyui-form" action='childprojectinfo/edit.dhtml' method="POST" data-options="novalidate:true">
	<input type="hidden" id="childProjectCode" name="childProjectCode" value="${enitty.childProjectCode?c}">
	<table class="hovertable"  width="100%">
		<tr>
			<td  width='120'>主项目名称：</td>
			<td>
				<input type="text" id="projectCode"  name="projectCode" value="${enitty.projectCode?c}" placeholder="请选择主项目" class="easyui-combobox search-input" style="width:260px;" data-options="required: true,inputId:'projectCode',editable:false,valueField:'projectCode',textField:'projectName',url:'projectbasicinfo/select.dhtml'">
			</td>
		</tr>
		<tr>
			<td  width='100'>子项目名称：</td>
			<td>
				<input type="text"  id="childProjectName" name="childProjectName" value="${enitty.childProjectName!''}" class="easyui-textbox"  data-options="required: true," style="width:260px;">
			</td>
		</tr>
		<tr>
			<td  width='100'>子项目英文名：</td>
			<td>
				<input type="text"  id="childProjectEng" name="childProjectEng" value="${enitty.childProjectEng!''}" class="easyui-textbox"  data-options="required: true," style="width:260px;">
			</td>
		</tr>
		<tr>
			<td width='100'>子项目类型：</td>
			<td>
				<input type="text" id="projectType" value="${enitty.projectType!''}" name="projectType" placeholder="请选择子项目类型" class="easyui-combobox" style="width:260px;" data-options="required: true,inputId:'projectType',editable:false,valueField: 'value',textField: 'label',data:[{label: '持久层',value: '010'},{label: '前端WEB',value: '020'},{label: 'API接口',value: '030'},{label: 'DUBBO服务',value: '040'},{label: '定时任务',value: '050'},{label: '后台管理',value: '060'}]" >
			</td>
		</tr>
		<tr>
			<td width='100'>打包类型：</td>
			<td>
				<input type="text" id="packageType" value="${enitty.packageType!''}" name="packageType" placeholder="请选择打包类型" class="easyui-combobox" style="width:260px;" data-options="required: true,inputId:'packageType',editable:false,valueField: 'value',textField: 'label',data:[{label: 'war',value: 'war'},{label: 'jar',value: 'jar'},{label: 'pom',value: 'pom'}]" >
			</td>
		</tr>
		<tr>
			<td  width='100'>项目存放路径：</td>
			<td>
				<input type="text"  id="projectPath" name="projectPath" value="${enitty.projectPath!''}" class="easyui-textbox"  data-options="" style="width:260px;">
			</td>
		</tr>
		<tr>
			<td  width='100'>版本配置文件名：</td>
			<td>
				<input type="text"  id="configFileName" name="configFileName" value="${enitty.configFileName!''}" class="easyui-textbox"  data-options="" style="width:260px;">&nbsp;&nbsp;（例：login-admin.properties）
			</td>
		</tr>
		<tr>
			<td  width='100'>环境版本配置：</td>
			<td>
				<textarea class="textarea" name="versionConfig" id="versionConfig" style="height:200px;width:400px;">${enitty.versionConfig!''}</textarea>
			</td>
		</tr>
		<tr>
			<td  width='100'>基础依赖包：</td>
			<td>
				<textarea class="textarea" name="basicJar" id="basicJar" style="height:200px;width:400px;">${enitty.basicJar!''}</textarea>
			</td>
		</tr>
	<tr>
		<td colspan="2"><span onclick="if($('#ff').form('enableValidation').form('validate')){ff.submit()}" id="edit_buttons" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">&nbsp;真&nbsp;要&nbsp;改&nbsp;？&nbsp;&nbsp;</span>
		<span onclick="colse_win('xgsj_${enitty.childProjectCode?c}')" class="easyui-linkbutton" data-options="iconCls:'icon-no'">&nbsp;还&nbsp;是&nbsp;关&nbsp;了&nbsp;吧&nbsp;？&nbsp;</span>
		&nbsp;&nbsp;<font color="red">${messages!""}</font>
		</td>
	</tr>
</table>
</#if>
<#if resultType = 'view'>
<div class="div_content_heah">浏览数据--${enitty.childProjectName!''}</div>
	<table class="hovertable"  width="100%">
		<tr>
			<td  width='100'>子项目编码：</td>
			<td>${enitty.childProjectCode!''}</td>
		</tr>
		<tr>
			<td  width='100'>项目编码：</td>
			<td>${enitty.projectCode_colmun!''}</td>
		</tr>
		<tr>
			<td  width='100'>项目名称：</td>
			<td>${enitty.childProjectName!''}</td>
		</tr>
		<tr>
			<td  width='100'>项目英文名：</td>
			<td>${enitty.childProjectEng!''}</td>
		</tr>
		<tr>
			<td  width='100'>项目类型：</td>
			<td>${enitty.projectType_colmun!''}</td>
		</tr>
		<tr>
			<td width='100'>打包类型：</td>
			<td>
				${enitty.packageType_colmun!''}
			</td>
		</tr>
		<tr>
			<td  width='100'>项目存放路径：</td>
			<td>${enitty.projectPath!''}</td>
		</tr>
		<tr>
			<td  width='100'>版本配置文件名：</td>
			<td>${enitty.configFileName!''}</td>
		</tr>
		<tr>
			<td  width='100'>环境版本配置：</td>
			<td>${enitty.versionConfig!''}</td>
		</tr>
		<tr>
			<td  width='100'>基础依赖包：</td>
			<td>${enitty.basicJar!''}</td>
		</tr>
		<tr>
			<td  width='100'>项目创建时间：</td>
			<td>${enitty.createTime!''}</td>
		</tr>
	<tr>
		<td colspan="2"><span onclick="colse_win('llsj_${enitty.childProjectCode?c}')" class="easyui-linkbutton" data-options="iconCls:'icon-no'">&nbsp;还&nbsp;是&nbsp;关&nbsp;了&nbsp;吧&nbsp;？&nbsp;</span></td>
	</tr>
</table>
</#if>
<#if resultType = 'edit'>
<script type="text/javascript">
</script>
</#if>
</body>
<script type="text/javascript">
$(function(){$('.validatebox-text').bind('blur', function(){$(this).validatebox('enableValidation').validatebox('validate');});})
function colse_win(id){	
	parent.colse_win(id);
}
</script>
</html>
